package com.fit.dao.certificate;

import java.util.List;

import org.apache.tapestry5.hibernate.annotations.CommitAfter;

import com.fit.entities.certificate.Certificate;

public interface CertificateDAO {

	@CommitAfter
	public boolean save(Certificate newCertificate);

	@CommitAfter
	public boolean delete(Certificate certificate);

	@CommitAfter
	public boolean update(Certificate certificate);

	public List<Certificate> findAll();

	public Certificate findByCertificateName(String name);

	public Certificate findByID(Long id);

	@CommitAfter
	public boolean deleteByID(Long id);
}
